import website  from '@/framework-core/config/website';
import {validateRules} from "@/framework-core/utils/validateRule";

export const tableOption = {
    "border": true,
    "index": true,
    "indexLabel": "#",
    "stripe": true,
    "menuAlign": "center",
    "align": "center",
    "searchMenuSpan": 6,
    searchEnter: true,
    selection: true,
    grid: window.isMobile,
    gridSpan: 24,
    menuWidth: 340,
    "column": [




                {
                    "type": "input",
                    "label": "api接口",
                    "prop": "url",
                    "overHidden": false,



                    "rules": [{
                        required:false,
                        message: 'api接口不能为空',
                        trigger: 'blur'
                    }],
                    'search':  false,
                    "span": 12
                }



,
                {
                    "type": "input",
                    "label": "状态",
                    "prop": "status",
                    "overHidden": false,



                    "rules": [{
                        required:false,
                        message: '状态不能为空',
                        trigger: 'blur'
                    }],
                    'search':  false,
                    "span": 12
                }



,
                {
                    "type": "input",
                    "label": "耗费时间",
                    "prop": "duration",
                    "overHidden": false,



                    "rules": [{
                        required:false,
                        message: '耗费时间不能为空',
                        trigger: 'blur'
                    }],
                    'search':  false,
                    "span": 12
                }



,
                {
                    "type": "number",
                    "label": "时间戳",
                    "prop": "timestamp",
                    "overHidden": false,



                    "rules": [{
                        required:false,
                        message: '时间戳不能为空',
                        trigger: 'blur'
                    }],
                    'search':  false,
                    "span": 12
                }



,
                {
                    "type": "input",
                    "label": "调用方ip",
                    "prop": "ip",
                    "overHidden": false,



                    "rules": [{
                        required:false,
                        message: '调用方ip不能为空',
                        trigger: 'blur'
                    }],
                    'search':  false,
                    "span": 12
                }



,
                {
                    "type": "number",
                    "label": "api配置",
                    "prop": "apiId",
                    "overHidden": false,



                    "rules": [{
                        required:false,
                        message: 'api配置不能为空',
                        trigger: 'blur'
                    }],
                    'search':  false,
                    "span": 12
                }



,
                {
                    "type": "input",
                    "label": "错误信息",
                    "prop": "error",
                    "overHidden": false,



                    "rules": [{
                        required:false,
                        message: '错误信息不能为空',
                        trigger: 'blur'
                    }],
                    'search':  false,
                    "span": 12
                }
    ]
}
